//
// Created by 王乐 on 2022/2/5.
//

#include "LeCameraObject.h"

#include "LeCameraFlyBehaviour.h"
#include "LeCamera2DBehaviour.h"
#include "LeCameraCADBehaviour.h"

void LeCameraObject::Initialize()
{
    strName = "MainCamera";

    // Transform
    // ---------
    m_Transform.setPosition(0.0f, 3.0f, 10.0f);

    // Behaviour
    // ---------
    LeBehaviour* pBehaviour = new LeCameraFlyBehaviour();
    LeCamera2DBehaviour* p2DBehaviour = new LeCamera2DBehaviour();
    LeCameraCADBehaviour* pCADBehaviour = new LeCameraCADBehaviour();

    // Initialize Components
    initComponents(nullptr, nullptr, pBehaviour, nullptr);
}

LeCameraObject::~LeCameraObject()
{

}
